// 推荐接口
import request from "./http";
// http://192.168.110.2:3000/banner
// 获取轮播图数据
export function getBanner() {
    return request({
        url: "/banner",
        method: "get",
        params: {
            type: 2
        }
    })
}

// 获取推荐歌单数据
export function getPersonalizedr() {
    return request({
        url: "/personalized",
        method: "get",
        params: {
            limit: 12
        }
    })
}

// 获取排行榜数据
export function getRankingList() {
    return request({
        url: "/toplist/detail",
        method: "get"
    })
}

//获取推荐歌曲
export function getRecommendedSongs() {
    return request({
        url: "/personalized/newsong",
        method: "get"
    })
}

//获取推荐MV
export function getVideo() {
    return request({
        url: "/personalized/mv",
        method: "get"
    })
}

//获取MV资源链接
export function getMvId(params) {
    return request({
        url: "/mv/url",
        method:"get",
        params
    })
}

//网易MV
export function get163Mv(){
    return request({
        url:"/mv/exclusive/rcmd",
        method:"get",
        params:{
            limit:10
        }
    })
}
